const { User } = require("./model");

!(async function(){

    const updateRes = await User.update({
        nickName: "张三"
    }, {
        where: {
            userName: "zhangsan"
        }
    })
    console.log('updateRes...', updateRes[0] > 0 )// true表示修改成功
})()